# @Author  : sdlyxyf@163.com
# @File    : demo.py
# @Software: PyCharm
# @Time    : 2022/5/19 23:16


class A():
    def __init__(self,score):
      self.score=score

    def get_grade(self):
        if self.score>=90:
            return 'A'
        else:
            return 'B'

a=A(100)

print(a.get_grade())